Xbasic

Array get_recycle Method

Syntax

dim result as L = <array>.get_recycle()

Returns

resultLogical

Returns .t. if array recycling is enabled, otherwise .f..

Description

Returns whether or not the array recycling is enabled.

Discussion

The <array>.get_recycle() method determines whether or not array recycling is enabled for an array. If recycling is enabled, when an array element is added using the [] operator, if the last element in the array is empty, Alpha Anywhere does not add a new element. Recycling is enabled by default for all new arrays.

Example

dim arr[0] as p
? arr.get_recycle()
= .T.

See Also